<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2022/6/30
  Time: 15:36
  To change this template use File | Settings | File Templates.
--%>
<%--2：用jsp在网页中输出1900-2020之间的闰年--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>闰年</title>
</head>
<body>
<%
    int count=0;
    for (int i = 1900; i <= 2020; i++) {
        if (i % 4 == 0 ) {
            count++;
            out.println(i+"年");
        }
    }
%>
一共有<%=count%>个闰年
</body>
</html>
